package com.xiaomengkuan.test.entity.vo;

import com.xiaomengkuan.test.entity.pojo.ProductDetailPicture;
import com.xiaomengkuan.test.entity.pojo.ProductMainPicture;
import com.xiaomengkuan.test.entity.pojo.ProductStory;
import com.xiaomengkuan.test.entity.pojo.Tag;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @author Faraj Mujey
 * -- Creation Time: 2021-01-07 1:45 下午, File Encoding: utf8 --
 */
@Data
@ToString
@JsonIgnoreProperties(value = { "hibernateLazyInitializer"})
public class ProductTagsVo {
    private int id;
    private String title;
    private String img;
    private int like;
    private int favourite;
    private boolean favourited;
    private double price;
    private boolean liked;
    private int sort;
    private String summary;
    @JsonSerialize(include= JsonSerialize.Inclusion.NON_EMPTY)
    private List<Tag> tags;
    private List<ProductMainPicture> productMainPictures;
    private List<ProductDetailPicture> productDetailPictures;
    private List<ProductStory> stories;
}
